import request from '@/utils/request'
// 列表
export function getParkingCardListAPI(params) {
  return request({
    url: '/parking/card/list',
    method: 'get',
    params
  })
}
// 新 增月卡
export function createCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}

// 删 增月卡
export function deleteCardAPI(id) {
  return request({
    url: `parking/card/${id}`,
    method: 'delete'
  })
}
// 删 增月卡
export function deleteAllCardAPI(ids) {
  return request({
    url: `parking/card/${ids.join(',')}`,
    method: 'delete'
  })
}
// 修改月卡
export function updateCardAPI(data) {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data
  })
}
// 查 传id获取详情回显
export function getDetailAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`,
    method: 'get'
  })
}